<%@ Page Title="Unsubscribe" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Unsubscribe.aspx.cs" Inherits="Unsubscribe" %>

<asp:Content ID="Head" ContentPlaceHolderID="head" runat="Server">
    <link href="styles/client.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="top_menu">
        <div id="help_button">
            help
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div id="left_content">
        <div class="left_image">
        </div>
    </div>
    <div id="right_content">
        <div id="content_area">
            <h2>
                Unsubscribe Form
            </h2>
            <div class="form_box">
                <table>
                    <tr>
                        <td align="center" colspan="2">
                            Are you sure you want to unsubscribe?
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            Enter your email adress and click unsubscribe.
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="login_label">
                            <asp:Label ID="emailLabel" runat="server" AssociatedControlID="emailTextBox">Your email: </asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="emailTextBox" runat="server" AutoCompleteType="Email" 
                                CssClass="login_textfield"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="emailRequired" runat="server" ControlToValidate="emailTextBox"
                                ErrorMessage="no email address specified." ToolTip="enter your email address."
                                ValidationGroup="Unsubscribe">*</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="EmailRegularExpressionValidator" runat="server"
                                ErrorMessage="Email address is not valid." ValidationGroup="Unsubscribe" ControlToValidate="emailTextBox"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" CssClass="RequiredFieldValidator"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2" style="color: Red;">
                            <asp:Label ID="FailureText" runat="server" Visible="False" CssClass="RequiredFieldValidator"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="right">
                            <asp:Button ID="UnsubscribeButton" runat="server" Text="Unsubscribe" ValidationGroup="Unsubscribe"
                                OnClick="UnsubscribeButton_Click" CssClass="login_button" />
                            &nbsp<asp:Button ID="CancelButton" runat="server" Text="Cancel" OnClick="CancelButton_Click"
                                CssClass="login_button" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
